﻿
namespace CssCommonLibrary
{
    internal static class StringExtensions
    {
        //Extension to string
        public static bool HasComment(this string str)
        {
            return false;
        }

        public static int Count(this string str, string word)
        {
            int count = 0, cursor = 0;
            while (cursor != str.Length && str.Substring(cursor).Contains(word))
            {
                cursor += str.Substring(cursor).IndexOf(word) + word.Length;
                count++;
            }
            return count;
        }
    }
}
